<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>导航菜单</title>
    <style>
        .box {
            width: 400px;
            height: 250px;
            position: relative;
            cursor: pointer
        }

        .box:hover .pbox {
            height: 100%;

        }

        .pbox {
            -webkit-transition: all 0.5s ease;
            transition: all 1.5s ease;
            position: absolute;
            bottom: 0;
            opacity: 50%;
            height: 0;
            overflow: hidden;
            
        }

        img {
            width: 100%;
            height: 100%;
            position: absolute;
        }
       
    </style>
</head>

<body>
    <div class="box">
        <a href=""> <img src="image/遥远的她.jpg" alt=""></a>
         <a href="" class="pbox">
                <h1>遥远的她</h1>
                <p>不知道她是谁，也不想知道</p>
            </a>
            
    </div>

</body>

</html>